package com.accp.demo.mapper.pruchase;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.accp.demo.pojo.purchase.PurchaseInstorage;
import com.accp.demo.pojo.purchase.PurchaseInstorageDetail;

public interface IPurchaseInstorageMapper {
	
		//分页查询主详
		List<PurchaseInstorage> findByPage(@Param("map")Map<String,Object> map);
		//List<PurchaseInstorage> findByPage(@Param("currentPage")int currentPage,@Param("pageSize")int pageSize);
	
		//分页查询所有记录数
		int count();
		//查询主表是否存在
		PurchaseInstorage isExist(@Param("billNo")String billNo);
		//新增主表数据
		void insert(@Param("map")Map<String,Object> map);
		//逻辑删除主表数据
		void delete(@Param("billno")String billNo);
		//更新主表数据
		void update(@Param("map")Map<String,Object> map);
		//审核
		void audit(@Param("billno")String billNo);
		//审核
		void unAudit(@Param("billno")String billNo);
		//新增详表数据
		void insertDetail(PurchaseInstorageDetail	 purchaseInstorageDetail);
		//实际删除详表数据
		void deleteDetail(@Param("billno")String billNo);
	
}
